package com.bitcommunity.dao;

import com.bitcommunity.pojo.*;

import java.util.List;

/**
 * @ClassName CommunityDao
 * @Description
 * @date 2023/11/16 19:04
 * @Author Squareroot_2
 */
public interface CommunityDao {
    User getUser(int uid);

    int addUser(User user);

    int updateUser(User user);

    UserInfo getUserInfo(int uid);

    int addUserInfo(UserInfo userInfo);

    int updateUserInfo(UserInfo userInfo);

    Moment getMoment(int mid);

    List<Moment> getTopMoments(int num);

    List<Moment> getMomentsByUid(int uid);

    int addMoment(Moment moment);

    int updateMoment(Moment moment);

    MomentReview getMomentReview(int mrid);

    List<MomentReview> getTopReviewsFromMoment(int mid, int num);

    int addMomentReview(MomentReview momentReview);

    int updateMomentReview(MomentReview momentReview);

    int addMomentLike(MomentLike momentLike);

    int deleteMomentLike(MomentLike momentLike);

    int addMomentReviewLike(MomentReviewLike momentReviewLike);

    int deleteMomentReviewLike(MomentReviewLike momentReviewLike);
}
